﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Manager/Manager.master" AutoEventWireup="true"
    CodeFile="Profile.aspx.cs" Inherits="Manager_Profile" %>

<asp:Content ID="Content1" ContentPlaceHolderID="PageTitle" runat="Server">
    Profile | Aptitude Online Test
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="PageHeader" runat="Server">
    <link type="text/css" rel="stylesheet" href="../Style/dataTables.css" />
</asp:Content>
<asp:Content ID="Content5" ContentPlaceHolderID="BodyContent" runat="Server">
    <div class="header">
        <span><span class="ico  gray spreadsheet"></span>
            <% Response.Write(Session["AdminName"]); %>
            profile</span>
    </div>
    <!-- End header -->
    <div class=" clear">
    </div>
    <div class="content">
        <p>
            <a id="addNew" title="Add">Add</a>
            </p>
        <asp:Label ID="lblmes" runat="server" Text=""></asp:Label>
        <p>
            <asp:Label ID="lblUsername" runat="server" Text="Username" Width="150px"></asp:Label>
            
            <asp:Label ID="txtUsername" runat="server"></asp:Label>
            
        </p>
        <p>
            <asp:Label ID="lblEmail" runat="server" Text="Email" Width="150px"></asp:Label>
            <asp:Label ID="txtEmail" runat="server"></asp:Label>
        </p>
        <p>
            <asp:Label ID="lblFullname" runat="server" Text="Fullname" Width="150px"></asp:Label>
            <asp:Label ID="txtFullname" runat="server"></asp:Label>
        </p>
        <p>
            <asp:Label ID="lblMobile" runat="server" Text="Mobile" Width="150px"></asp:Label>
            <asp:Label ID="txtMobile" runat="server"></asp:Label>
        </p>
        <p>
            <asp:Label ID="lblAddress" runat="server" Text="Address" Width="150px"></asp:Label>
            <asp:Label ID="txtAddress" runat="server"></asp:Label>
        </p>
        <div style="padding: 2px 0px;">
            <input type="button"  class="uibutton normal but_login" onclick="EditProfile(<% Response.Write(Session["ManagerID"]); %>)" value="Edit profile" />
        </div>
        <div class=" clear">
        </div>
        </div>
    <script language="javascript" type="text/javascript">
        $(document).ready(function () {
            //check show message
            if ($("#ctl00_BodyContent_lblmes").text() != "") {
                setTimeout('showSuccess( $("#ctl00_BodyContent_lblmes").text())', 100);
            }

            //add candidate
            $("#addNew").click(function () {
                window.location.href = 'AddManager.aspx';
            });
        })

        //load edit candidate page
        function EditProfile(id) {
            window.location.href = 'EditProfileManager.aspx?ID=' + id;
        }

    </script>
</asp:Content>
